export default [
    {
        path: '/',
        redirect:'/login'
    },
    {
      // 登录
      path:'/login',
      component:()=>import('../components/UserLogin')
    },
    // 进入系统
    {
      path:'/sys',
      component:()=>import('../components/Sys'),
      redirect:'/sys/main',
      children:[
        {
          // 首页，欢迎信息
          path:'main',
          component:()=>import('../pages/MainPage'),
          meta:{title:'首页'},
        },
        
        {
          // 员工列表
          path:'stafflist',
          component:()=>import('../pages/StaffList'),
          meta:{title:'员工列表'},
        
        },
        {
          // 添加员工
          path:'addstaff',
          component:()=>import('../pages/AddStaff'),
          meta:{title:'添加员工'},
        
        },
        {
          // 员工考勤
          path:'staffcheck',
          component:()=>import('../pages/StaffCheck'),
          meta:{title:'员工考勤'}
        },
         // 考勤动态
        { path:'checkdynamic',
          component:()=>import('../pages/CheckDynamic'),
          meta:{title:'考勤动态'}
        }
      ]
    },
    
     
    
    // {
    //   // 考勤管理
    //   path:'/checkmanage*',
    //   component:()=>import('../pages/StaffCheck'),
    //   redirect:'/staffcheck',
    //   meta:{title:'考勤管理'},
    // },
    
    
]